package com.tcm.smarthealth.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Schema(name = "QuestionResponse", description = "智能问答响应")
public class QuestionResponse {

    @Schema(description = "记录 ID", example = "10001")
    private Long id;

    @Schema(description = "提问内容", example = "最近总是头晕乏力怎么办？")
    private String content;

    @Schema(description = "AI 回答")
    private String answer;

    @Schema(description = "问答类型", example = "HYBRID")
    private String type;

    @Schema(description = "置信度", example = "0.92")
    private BigDecimal confidence;

    @Schema(description = "创建时间", example = "2025-11-07 21:18:00")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdAt;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getAnswer() {
        return answer;
    }

    public void setAnswer(String answer) {
        this.answer = answer;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public BigDecimal getConfidence() {
        return confidence;
    }

    public void setConfidence(BigDecimal confidence) {
        this.confidence = confidence;
    }

    public LocalDateTime getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(LocalDateTime createdAt) {
        this.createdAt = createdAt;
    }
}

